package com.jiazhong.utils;

import com.jiazhong.Model.Goods;

import java.lang.reflect.InvocationTargetException;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;

public class UtilsTest {
    public static void main(String[] args) throws NoSuchFieldException, InvocationTargetException, NoSuchMethodException, InstantiationException, IllegalAccessException {
        Map<String ,Object> map=new HashMap<String ,Object>(){{
                put("goods_id",101);
                put("goods_name","鼠标");
                put("goods_price",88.0);
                put("goods_time",new Date());
        }};
        Goods goods = Utils.setter(Goods.class, map);
        System.out.println(goods);
    }



}
